// empty-json.js
let contentType = $response.headers['Content-Type'] || $response.headers['content-type'];
if (contentType && contentType.includes('application/json')) {
  $done({ body: '{}' });
} else {
  $done({});
}
